﻿using System;
using System.Collections.Generic;

namespace AutoTaskSchedule.Core.Models
{
    public class Task
    {
        public Task()
        {
            TaskProperty = new List<TaskProperty>();
        }

        public Guid Id { get; set; }

        public string Name { get; set; }

        /// <summary>
        /// 程序集所在的磁盘路径
        /// </summary>
        public string TaskAssemblyFullName { get; set; }

        /// <summary>
        /// 调度类的业务逻辑类名称
        /// </summary>
        public string ClassName { get; set; }

        /// <summary>
        /// 轮询时间
        /// </summary>
        public int? Interval { get; set; }

        /// <summary>
        /// 是否运行中
        /// </summary>
        public bool IsRunning { get; set; }

        public List<TaskProperty> TaskProperty { get; set; }
    }
}